import threading
from asyncio import run
# 老版本问题 现在已经解决

sum = 0
def run1():
    global sum
    for i in range(10000):
        sum += 1
        sum -= 1
    print("run1", sum)
    pass

def run2():
    global sum
    for i in range(10000):
        sum += 1
        sum -= 1
    print("run2", sum)
    pass


if __name__ == '__main__':
    t1 = threading.Thread(target=run1)
    t2 = threading.Thread(target=run2)

    t1.start()
    t2.start()

    t1.join()
    t2.join()

    print('over')
